<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<%
	request.setAttribute("modelConfigPath", "cargo");
%>
<%@ include file="/WEB-INF/views/shared/master/contentHeader.jsp"%>

	
<t:panel cssClass="panel-flat form-detailed" customBody="true" customHead="true">
	<div class="detailed-navbar-content panel-body">
		<t:form modelAttribute="collocation" action="/cargo/collocation/save" method="post" cssClass="form-horizontal">
			<div class="hide">
				 <t:hidden path="collocationId"/>
 				 <t:hidden path="deleteMark"/>	
 				 <t:hidden path="createUserName"/>
		 		 <t:hidden path="createUserId"/>
		 		 <t:hidden path="createDate"/>
		 		 <t:hidden path="shopId"/>
			</div>
       
       
            <t:formgroup>
                <t:label path="propertyNameOne" cssClass="col-sm-1"  />
                <div class="col-sm-2">
                <input  class="form-control custom-input" readonly="true" data-control-type="input" data-ts-forcestepdivisibility="none" type="text"  value='${collocation.propertyNameOne}/${collocation.propertyNameTwo}'  placeholder="请输入销售价">
                <span class="field-validation-valid" data-valmsg-replace="true" data-valmsg-for="salePrice"></span>
                </div>
            </t:formgroup>
            <t:formgroup>
                <t:label path="costPrice" cssClass="col-sm-1" />
                <t:input path="costPrice" colClass="col-sm-2" />
                <t:label path="salePrice" cssClass="col-sm-1" />
                <t:input path="salePrice" colClass="col-sm-2" />
            </t:formgroup>
     
		</t:form>
	</div>
	<t:panelFoot headingBtnCssClass="heading-btn pull-right-important">
		<t:button icon="icon-floppy-disk" onclick="saveData()" laddaType="progress" cssClass="btn-info" csize="sm">保存</t:button>
	</t:panelFoot>
</t:panel>

<script type="text/javascript">

function saveData(lBtn){
	if (!$("form:first").valid()){
		return;
	}
	lBtn.start();
	$("form:first").submit();
}

function actionResultCallBack(){
	var result={close:true,refresh:false};
	
	top.main.element_table.formSubmit();
	
	return result;
}

</script>
<%@ include file="/WEB-INF/views/shared/base/scripts/jqueryui.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formtags.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formbuttons.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formpickers.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formstyling.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/dialog.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/contentFooter.jsp"%>
